package com.erbao.dp.factory.ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author CaoBaoYin
 * @since 21/8/26 19:28
 */
public class Main {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("app.xml");
//        Driver driver = (Driver) context.getBean("driver");
        Tank t = (Tank) context.getBean("tank");
    }

}
